ifeq ($(gcc),1)
   CC=gcc 
else
   TOOLCHAIN=../../buildroot/output/host
   CC=$(TOOLCHAIN)/usr/bin/$(arch)-linux-gcc
endif



OPTS= -Wall
HDRS= -I $(TOOLCHAIN)/usr/include -I src/

default:
	$(CC) $(HDRS) src/sender.c -o usr/bin/oddiscovery-sender
	$(CC) $(HDRS) src/listener.c -o usr/bin/oddiscovery-listener
	$(CC) $(HDRS) src/sshbatch.c -o usr/bin/sshbatch -lutil


clean:
	rm -f usr/bin/* pkg/*

